import React, { useState } from 'react';
import { Select, Space } from 'antd';

const [valueSelect, setValueRadio] = useState(null);

const handleChangeSelect = (value: string) => {
  console.log(`selected ${value}`);
  setValueRadio(value as any);
};

const App: React.FC = () => (
  <Space wrap>
    学校
    <Select
      value={valueSelect}
      style={{ width: 120 }}
      onChange={handleChangeSelect}
      options={[
        { value: 'jack', label: 'Jack' },
        { value: 'lucy', label: 'Lucy' },
        { value: 'Yiminghe', label: 'yiminghe' },
      ]}
    />
  </Space>
);

export default App;
